package com.link.base.tencent.corpwx.externalcontact.service;

import com.link.base.tencent.corpwx.externalcontact.model.UnassignedAccount;
import com.link.core.basic.service.BasicService;

/**
 * 离职人员客户-离职员工的客户列表 
 *
 * @author 李宗庭
 * @date 2020/01/15 10:21
 */
public interface UnassignedAccountService extends BasicService<UnassignedAccount> {
    
    /**
     * 从企业微信同步离职人员的客户联系人到CRM
     * @author Lizongting
     * @date 2020/1/15
     */
    void syncUnassignedAccountFromWx() throws Exception;
    
    /** 
    * 通过员工的userid和客户的userid从Link查询离职人员的客户信息
    * @author Lizongting
    * @date 2020/1/15
    * @param record 需要提供员工的userId和客户的userId
    */
    UnassignedAccount getUnassignedFromLink(UnassignedAccount record) throws Exception;

    /** 
    * 将离职员工的客户重新分配给在职员工
    * @author Lizongting  
    * @param record
    * @date 2020/1/15
    */ 
    void reassignAccount(UnassignedAccount record) throws Exception;

}
